﻿/********************************************
 * 
 * Jim Trebbien
 * 
 * *****************************************/


using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class Token
    {
        public enum Tokentype { RuteNr, Bynavn };
        public Tokentype Typen;
        public string Leksem;       // Value
        public int Linienr;

        public Token(Tokentype typen, string leksem, int linienr)
        {
            this.Typen = typen;
            this.Leksem = leksem;
            this.Linienr = linienr;
        }

        public override string ToString()
        {
            return "Type=" + Typen + " leksem=" + Leksem + " linienr=" + Linienr;
        }
    }
}

